#include "dominion.h"
#include "rngs.h"
#include "dominion_helpers.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <assert.h>

int main (int argc, char **argv)
{
	int player = 0;
	struct gameState *test = newGame();
	test->numPlayers = 2;
	test->whoseTurn = 0;
	test->handCount[player] = 5;
	test->deckCount[player] = 10;
	int *bonus = 0;
	test->hand[player][0] = village;
	test->numActions = 0;
	
	cardEffect(village, 0, 0, 0,test,0, bonus );
	
	if(test->handCount[player] == 5)
		{
			printf("Test passed.\n");
		}
	else
		printf("Test failed: %d\n", test->handCount[player]);
		
	if(test->numActions == 2)
		{
			printf("Test passed.\n");
		}
	else
		printf("Test failed, num actions: %d", test->numActions);
		
	//add cards to maxed out hand
	test->handCount[player] = 501;
	
	if(test->handCount[player] == 501)
		{
			printf("Added cards to maxed out hand.\n");
		}
	else
		printf("Test passed: %d\n", test->handCount[player]);
	
	
	
	
	return 0;
	
}